package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.Letter;
import cn.wolfcode.trip.base.domain.Region;
import cn.wolfcode.trip.base.query.LetterQueryObject;
import cn.wolfcode.trip.base.query.SystemMessageQueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;
import java.util.Map;

public interface ILetterService {



    PageInfo queryUnreadLetterByUserId(LetterQueryObject qo);

    void updataLetterStateByUserId(Long id);


    Object countUnReadletters(LetterQueryObject qo);

    void updateState(Long sendId, Long acceptId, Integer state);

    List<Map> queryBySendIdOrAcceptId(Long sendId, Long acceptId);

    List<Map> changeStateAndGetLetters(Long sendId, Long acceptId);

    Map<Object, Object> sendLetter(Long sendId, Long acceptId, String content);
}
